package com.qf.quartzTest;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
/*2021/10/25*/public class SpringTest {

    @Scheduled(cron = "* * * * * ?")
    public void task1(){
        System.out.println("定时任务执行了："+System.currentTimeMillis());
    }
}
